export default {
  end_time: [
    { required: true, message: '结束时间不能为空', trigger: 'blur' },
  ],
  role_id: [
    { required: true, message: '角色不能为空', trigger: 'blur' },
  ],
  name: [
    { required: true, message: '名称不能为空', trigger: 'blur' },
  ],
  username: [
    { required: true, message: '商户名不能为空', trigger: 'blur' },
  ],
  password: [
    { required: true, message: '密码不能为空', trigger: 'blur' },
    { min: 6, message: '密码为6位以上', trigger: 'blur' }
  ],
  mobile: [
      { required: true, message: '手机不能为空', trigger: 'blur' },
      { pattern:/^((0\d{2,3}-\d{7,8})|(1[23567894]\d{9}))$/, message: "请输入正确手机", trigger: "blur" }
  ],
  email: [
      { required: false, message: '请输入邮箱', trigger: 'blur' },
      { type: 'email', message: '邮箱格式不对', trigger: 'blur' }
  ]
}
